<?php
/**
 * Describe:
 * Source:
 * User: blue
 * Time: 2018/2/10 10:22
 */

namespace aop\validate;
use think\Validate;

class Group extends Validate
{
    protected $rule=[
        'title'=>'require',
        'id'=>'require',
        'rules'=>'require'
    ];
    protected $message=[
        'title.require'=>'管理组名必须填写',
        'id.require'=>'没有获取删除的数据',
        'rules.require'=>'必须选取相应规则'
    ];
    protected $scene=[
        'add'=>['title,rules'],
        'del'=>['id,rules']
    ];
}